import java.util.Scanner;
public class can {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入这个长方形的长：");
        int chang = sc.nextInt();
        System.out.println("请输入这个长方形的宽：");
        int kuan = sc.nextInt();
        sum (chang,kuan);


    }
    public static void sum(int chang,int kuan) {
        int sumo = (chang + kuan)*2;
        System.out.println("这个长方形的周长是："+sumo);
    }
}
